using System;

namespace FrameIdentityReq.Frames
{
    public class UInt16Field : IntField, IUInt16Field
    {
        public UInt16Field(IBytesBuffer buffer, int index, string name)
            : base(buffer, index, 16, name) { }

        public UInt16Field(IField field, string name)
            : this(field, field.Index + field.Count, name) { }

        public new UInt16 Value
        {
            get { return (UInt16)base.Value; }
            set { base.Value = value; }
        }
    }
}